package com.rpc.protocal;

import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * RpcProtocol
 * RPC协议包约定类
 * @author 春江花朝秋月夜
 * @since 2024/1/16 21:09
 */
@Data
@NoArgsConstructor
public class RpcProtocol<T> implements Serializable {
    //数据头
    private MsgHeader header;

    private T body;//请求数据
}
